package com.dnjn.happiness.survey.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dnjn.happiness.survey.domain.CheckItem;
import com.dnjn.happiness.survey.domain.vo.CheckItemVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 考核Mapper接口
 *
 * @author happiness
 * @date 2024-04-01
 */
public interface CheckItemMapper extends  BaseMapper<CheckItem>
{

    Page<CheckItemVO> queryCheckItemByCheckId(@Param("page") Page page, @Param("nickName") String nickName, @Param("checkStatus") String checkStatus,@Param("checkId") String checkId,@Param("deptId") Long deptId,@Param("teamId") Long teamId);

    List<CheckItem> getCheckItem(@Param("userId") Long userId,@Param("checkStatus") String checkStatus);



    List<CheckItemVO> queryCheckItemByCheckIdAndUserId( @Param("checkId") Long checkId, @Param("userId") Long userId);

    List<CheckItemVO> getItemByUserId(Long userId);
}
